package exercise_2;

public class MyRunnable implements Runnable {
	String name;
	int runTimes;
	
	public MyRunnable(String name,int times) {
		this.name = name;
		runTimes = times;
	}
	
	@Override
	 public void run() {
		for(int i=0; i< runTimes;i++) {
			System.out.println(name+" "+(i+1));
			
		
	}

}
}